<?php
        
        require_once './lianjie.php';
        $bianhao = $mingcheng = $chubanshe = $jianjie="";
        $mingcheng = $_POST['mingcheng'];
        $bianhao = $_POST['bianhao'];
        $chubanshe = $_POST['chubanshe'];
        $jianjie = $_POST['jianjie'];

        if(empty($bianhao) || empty($mingcheng) || empty($chubanshe) || empty($jianjie)){
        	echo "-1";
        }else{
        	$sql="INSERT INTO book(book_ID,book_name,book_pubHou,book_introduce) VALUES('$bianhao','$mingcheng','$chubanshe','$jianjie')";
        	if(mysqli_query($con, $sql)){
        		echo "0";
        	}else{
        		echo "1";
        	}
        }


?>